package us.esme.managers
{
	import mx.collections.ArrayCollection;
	
	import us.esme.events.ESMEEvent;
	
	public class SearchManager
	{
		[Bindable] public var searchResults:ArrayCollection;
		
		public function SearchManager(){
			searchResults = new ArrayCollection();
		}

		public function storeResults(e:ESMEEvent, obj:Object):void{
		 		var key:String= e.sTag;
			 	var a:Array = new Array();
			 	a[key] = obj..message as XMLList; 
			 	searchResults.source = a;
		}
	}
}